package com.scorpio.basic.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.scorpio.common.core.domain.BaseEntity;
import com.scorpio.common.utils.verification.DefaultGroup;
import com.baomidou.mybatisplus.annotation.TableName;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 首页列数据对象 sc_home_list
 *
 * @author scorpio
 * @date 2021-11-16
 */
@TableName("sc_home_list")
public class HomeListEntity extends BaseEntity {
    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.AUTO)
    private Long id;

    //展现类型
    @NotBlank(message = "请选择展现类型", groups = {DefaultGroup.class})
    private String showType;

    //优先级
    @NotNull(message = "优先级", groups = {DefaultGroup.class})
    private Long sort;

    //0=正常,1=停用
    @NotBlank(message = "状态", groups = {DefaultGroup.class})
    private String status;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setShowType(String showType) {
        this.showType = showType;
    }

    public String getShowType() {
        return showType;
    }

    public void setSort(Long sort) {
        this.sort = sort;
    }

    public Long getSort() {
        return sort;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getStatus() {
        return status;
    }

}
